<template>
  <div>
    <a v-if="displayType === 'LINK'" @click="showModal">{{ text }}</a>
    <a-modal 
      title="选择样本编号"
      centered
      :width="1000"
      v-model="visible"
    >
      <div>
        <PathList :sampleInfo="row"/>
      </div>
      <template slot="footer">
        <a-button @click="handleCancel">{{ $t('modal_close') }}</a-button>
      </template>
    </a-modal>
  </div>
</template>
<script>
export default {
  mounted: function(){
  },
  watch:{

  },
  props: {
    text: { type: [String] },
    displayType: { type: [String], default: 'BUTTON' },
    row: { type: [Object], default: () => { return {} } },
  },
  data() {
    return {
      visible: false,
    }
  },
  computed: {

  },
  methods: {
    showModal() {
      this.visible = true
      this.selectedRowKeys =  [this.value]
    },
    handleCancel() {
      this.visible = false
    },
  }
}
</script>
